package com.example.smartagriculture.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import io.swagger.v3.oas.annotations.media.Schema;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

import java.io.Serial;
import java.io.Serializable;

@Data
@AllArgsConstructor
@NoArgsConstructor
@TableName("account")
public class Account implements Serializable {
    @Serial
    private  static final long serialVersionUID = 1L;

    @TableId(value = "id" , type = IdType.AUTO)
    @Schema(name = "id",description = "略")
    private Long id;

    @Schema(name = "account_no" , description = "账户号")
    private String accountNo;

    @Schema(name = "password" , description = "密码")
    private String password;

    @Schema(name = "role_no" , description = "角色号")
    private String roleNo;

    @Schema(name = "phone_no" , description = "电话号")
    private String phoneNo;

    @Schema(name = "mail" , description = "邮箱")
    private String mail;

    @Schema(name = "is_delete" , description = "逻辑删除")
    private int isDelete;
}
